package com.han.neo4jjava.core.person;

import com.han.neo4jjava.core.location.Location;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Person {

    private Long id;

    private String name;

    private Location bornIn;

    private Location liveIn;

    @Builder.Default
    private List<Location> lived = Collections.emptyList();
}
